#!/bin/bash
Current_PATH=$(cd $(dirname $0) && pwd)
ZLMediaKit_ROOT=${Current_PATH}/../ZLMediaKit
# MediaService_PATH=${ZLMediaKit_ROOT}/release/linux/Debug/MediaServer
MediaService_PATH=${ZLMediaKit_ROOT}/release/linux/Release/MediaServer

cd ${ZLMediaKit_ROOT}
nohup ${MediaService_PATH} -d -l 0 -m 3 -c ${Current_PATH}/conf/config.ini -t 4 >${Current_PATH}/logs/temp.log 2>&1 &
echo "started ZLMediaKit ..."
# tail -f -n 1000 ${Current_PATH}/logs/temp.log
exit
